package com.catchman.constant;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 配置虚拟路径到本地计算机路径之间的映射
 * 读取yml配置文件进行注入
 *
 * @author catchman
 */
@Component
@ConfigurationProperties(prefix = "upload-file")
public class FileUploadPath {
    private Map<String, List<Map<String, String>>> path2docBase;

    public Map<String, List<Map<String, String>>> getPath2docBase() {
        return path2docBase;
    }

    public void setPath2docBase(Map<String, List<Map<String, String>>> path2docBase) {
        this.path2docBase = path2docBase;
    }
}
